package flyweight.main.object;

/**
 * 抽象棋子类
 */
public abstract class AbstractChessman {
    //棋子类别（黑|白）
    protected String chess;

    //棋子坐标
    protected int x;
    protected int y;

    public AbstractChessman(String chess) {
        this.chess = chess;
    }

    //显示棋子信息
    public void show() {
        System.out.println(this.chess + "(" + this.x + "," + this.y + ")");
    }

    public abstract void point(int x, int y);
}
